package com.wxtl.entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * LkCustPlug entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "lk_cust_plug", catalog = "upweb")
public class LkCustPlug implements java.io.Serializable {

	// Fields

	private LkCustPlugId id;

	// Constructors

	/** default constructor */
	public LkCustPlug() {
	}

	/** full constructor */
	public LkCustPlug(LkCustPlugId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "custId", column = @Column(name = "custId", nullable = false)),
			@AttributeOverride(name = "plugCode", column = @Column(name = "plugCode", length = 20)),
			@AttributeOverride(name = "regTime", column = @Column(name = "regTime", length = 19)),
			@AttributeOverride(name = "deadline", column = @Column(name = "deadline", length = 19)),
			@AttributeOverride(name = "state", column = @Column(name = "state")),
			@AttributeOverride(name = "renewTotal", column = @Column(name = "renewTotal")),
			@AttributeOverride(name = "initVersion", column = @Column(name = "initVersion", length = 10)) })
	public LkCustPlugId getId() {
		return this.id;
	}

	public void setId(LkCustPlugId id) {
		this.id = id;
	}

}